#!/usr/bin/env python
#-*- coding:utf-8 -*- 

from numpy import *

Z = zeros((8,8),dtype=int)
Z[1::2,::2] = 1
Z[::2,1::2] = 1
print(Z[:, 1])
print(Z)